﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FizzBuzz.Service;

namespace FizzBuzz.ServiceImpl.Rules
{
    public class FizzRule:IRule
    {
        public string ProcessInput(int value)
        {
            return RuleMatch(value) ? "Fizz" : "";
        }

        public bool RuleMatch(int value)
        {
            return ((value % 3) == 0);
        }
    }
}
